package common.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * Created by Gerardo on 1/25/14.
 */
public class TestConnection {
	private UrlDb urlDb;
	private Credentials credentials;
	private void excute() {
		try (Connection connection = DriverManager.getConnection(urlDb.toUrl(), credentials.user(), credentials.pass()))
		{
			System.out.println("Database connection: Successful");
		} catch (SQLException e) {
			System.out.println("Database connection: Failed");
			e.printStackTrace();
		}
	}
}
